<?php


namespace App\Http\Middleware;


use Closure;

class admin
{
    public function handle($request, Closure $next)
    {
        if (session('admin_user_name')==null) {
            return redirect('/login_admin');
        }

        return $next($request);
    }
}

